package com.yipei.business.job;

import com.yipei.business.service.*;
import org.apache.http.HttpRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.io.IOException;

@Component("flashNews")
public class FlashNews {
    @Autowired
    private IMlFlashNewsService iMlFlashNewsService;
    @Autowired
    private IMlHeadlinesNewsService iMlHeadlinesNewsService;

    @Autowired
    private IMlImportantNewsService iMlImportantNewsService;

    @Autowired
    private IMlLastHotNewsService iMlLastHotNewsService;

    @Autowired
    private IMlTodayNewsService iMlTodayNewsService;
    public void addFlashNews () throws IOException {
        iMlFlashNewsService.addFlashNews();
    }

    public void addHeadNews () throws Exception {
        iMlHeadlinesNewsService.addHeadNews();
    }
    public void addImporttantNews () throws Exception {
        iMlImportantNewsService.addImporttantNews();
    }

    public void addLastHotNews () throws Exception {
        iMlLastHotNewsService.iMlLastHotNewsService();
    }

    public void addTodayNews () throws IOException {
        iMlTodayNewsService.addTodayNews();
    }

}
